package com.yang.moyu.meta.system.service.impl;

import com.yang.moyu.meta.system.domain.SysUser;
import com.yang.moyu.meta.system.mapper.SysUserMapper;
import com.yang.moyu.meta.system.service.SysUserService;
import com.yang.moyu.meta.system.vo.SysUserQueryVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Create by 10296 on 2021/12/16
 *
 * @Description:
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SysUserMapper sysUserMapper;


    @Override
    public boolean saveSysUser(Map<String, Object> sysUserVo) throws Exception {
        int i = sysUserMapper.saveSysUser(sysUserVo);


        return false;
    }

    @Override
    public boolean updateSysUser(Map<String, Object> paramsMap) throws Exception {
        sysUserMapper.updateSysUser(paramsMap);

        return false;
    }

    @Override
    public boolean deleteSysUser(Map<String, Object> paramsMap) throws Exception {

        return false;
    }

    @Override
    public SysUserQueryVo getSysUserById(Long id) throws Exception {


        return null;
    }

    @Override
    public SysUserQueryVo getSysUserByUsrName(String username) throws Exception {
        return null;
    }

    @Override
    public SysUser getSysUserByPwd(Map<String, Object> paramMap) throws Exception {


        return sysUserMapper.getLoginSysUser(paramMap);
    }

    @Override
    public boolean isExistsByUsername(String username) throws Exception {
        return false;
    }

    @Override
    public void checkDepartmentAndRole(Long departmentId, Long roleId) throws Exception {

    }

    @Override
    public boolean isExistsSysUserByRoleId(Long roleId) throws Exception {
        return false;
    }

    @Override
    public boolean updatePassword(Map<String, Object> updatePasswordParam) throws Exception {
        return false;
    }

    @Override
    public boolean updateSysUserHead(Long id, String headPath) throws Exception {
        return false;
    }

    @Override
    public boolean resetPassword(Map<String, Object> resetPasswordParam) throws Exception {
        int i = sysUserMapper.resetSysUserPwd(resetPasswordParam);
        return false;
    }
}


